package jdbc;

import java.sql.Connection;
import java.sql.DriverManager;
import java.sql.SQLException;
import java.sql.Statement;

public class Main {
    public static void main(String[] args) throws Exception {
        DBUtil dbUtil=new DBUtil();
        User user = new User("002","一个人","123456");
        dbUtil.connect();
        dbUtil.add(user);
        dbUtil.delete("ygr");
        dbUtil.query("ygr");
        dbUtil.queryAll();
        dbUtil.update("ygr","1234");
    }
}